package com.woniu.liuzhougov.itemAndTask.vo;

import java.util.List;

/**
 * @author wyz02
 * @version 1.0
 * @ClassName LayUIResult
 * @Description: 封装数据，返回前端
 * @date 2019/4/22 11:19
 */
public class LayUIResult {
    private String code;
    private String msg;
    private Integer count;
    private List data;

    public LayUIResult() {
    }

    //一般调用这个构造函数生成返回对象
    public LayUIResult(List data){
        this.code = "0";
        this.msg = "";
        this.count = data.size();
        this.data = data;
    }

    public LayUIResult(String code, String msg, Integer count, List<Object> data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<Object> getData() {
        return data;
    }

    public void setData(List<Object> data) {
        this.data = data;
    }
}
